package com.itheima.day03.demo06;

public class Student {
    /**姓名：小明，年龄：18，性别：男
     姓名：小红，年龄：19，性别：女*/
    private String name ;
    private int age ;
    private  Sex sex ;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student(String name, int age, Sex sex) {
        this.name = name;
        this.age = age;
        this.sex =  sex;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }
}
